package com.cq.hd.member.api.vo;



import com.cq.hd.common.serialize.Decimal2Serializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
public class AppMerchantPageVo implements Serializable {

    @ApiModelProperty(value = "商户id")
    private Long id;

    @ApiModelProperty(value = "商户名称")
    private String merchantName;

    @ApiModelProperty(value = "商户简称")
    private String merchantShortName;

    @ApiModelProperty(value = "头像")
    private String avatar;

    @ApiModelProperty(value = "所属行业code")
    private String mcc;

    @ApiModelProperty(value = "所属行业名称")
    private String mccName;

    @JsonSerialize(using = Decimal2Serializer.class)
    private BigDecimal totalSubsidyAmt;

    @ApiModelProperty(value = "总订单金额=总商户商品本金+商品订单总补贴")
    @JsonSerialize(using = Decimal2Serializer.class)
    private BigDecimal totalOrderAmt = BigDecimal.ZERO;

    @ApiModelProperty(value = "总订单数")
    private Integer totalOrderCount = 0;
}
